const check = (req, res, next) => {
  if (req.session['username']) {
    next()
  } else {
    res.redirect('/login.html')
  }
}
module.exports = check